package com.maxiaowei;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 功能描述: SpringBoot启动类
 * <p>
 * 作者: maxiaowei
 */
@SpringBootApplication
// 扫描 mybaits 通用 mapper 所在的包
@MapperScan(basePackages = "com.maxiaowei.mapper")
// 扫描所有包以及相关组件包
@ComponentScan(basePackages = {"com.maxiaowei",
        "org.n3r.idworker"})
public class FoodieApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(FoodieApiApplication.class, args);
    }
}
